from pydantic import BaseModel
from typing import Union, Optional, List

class RoleData(BaseModel):
    """
    岗位信息表对应pydantic模型
    """
    role_id: Optional[int]
    role_key: Optional[str]
    role_name: Optional[str]
    data_scope: Optional[str]
    status: Optional[str]
    remark: Optional[str] = ''
    menuKeys: List[int] = []

    class Config:
        from_attributes = True
        
        
        
        